from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
# 把模型类导入到启动文件
from info import create_app, db, models

app = create_app('development')
# app = create_app('production')


# 实例化管理器对象
manage = Manager(app)
# 使用迁移框架
Migrate(app,db)
# 添加迁移命令给管理器
manage.add_command('db', MigrateCommand)





if __name__ == '__main__' :

    manage.run()
